function selmenu(indic);
% function selmenu(indic);
% Creates commonly used menus 
% Use indic='G' or 'g' for closing graph menu 
% Use indic='C' or 'c' for continuing menu
% AJ Tested 9/24/03
% ================================================
if (indic == 'G' ) | (indic == 'g'); 
    cgf = menu('Graph Manager','Close all Graphs','Do not Close Graphs'); 
    if cgf == 1
        close all; 
    end 
elseif (indic == 'C' ) | (indic == 'c'); 
    cgf = menu(' Continue Running Program ?','Continue ',' Stop'); 
    if cgf == 2
        error('Program Terminated ');  
    end     
end